
import { _decorator,color} from 'cc';

//游戏状态
export enum GameState
{
    Unknow=0,
    //游戏中
    Gaming=1,
    //暂停
    Pause=2,
    //结算
    Settle=3,
};

//游戏模式
export enum GameMode
{
    //经典模式
    BallGame=0,
    //连线玩法
    LineGame=1,
};

//关卡难度
export enum Difficulty
{
    Normal,
    Challenge,
    Hard,
    SuperHard
};

// 100 30
export const GameConfig={
    HorizontalGridsNum:6,
    VerticalGridsNum:6,
    TotalGridsNum:36,
    GridWidth:100,
    GridInterval:15,
    BallColorCount:5
};

export const NativeEvt={
    SplashAd:"SplashAd",
    NativeAd:"NativeAd",
    VedioAd:"VedioAd",
    PrivacyPass:"PrivacyPass",
    MoreGame:"MoreGame",

    VedioGetMoney:"VedioGetMoney",
    VedioGetMoneyUI:"VedioGetMoneyUI",
    VedioDaily:"VedioDaily",
    VedioResultAward:"VedioResultAward",
    VedioRelive:"VedioRelive",
    VedioSkipLineGame:"VedioSkipLineGame",
    VedioResumeHp:"VedioResumeHp"
};

export enum Items
{
    Unknow=0,
    Bomb,
    Rocket,
    Refresh,
    Using
};

export const ItemPrice={
  Bomb:300,
  Rocket:600,
  Refresh:900
};

export const BallColorIdx={
  r:0, g:1, b:2, o:3, p:4, c:5
};

export const StripColors=[color("#e93352"), color("#51b337"), color("#4671f6"), color("#ed7432"), color("#7c15ce")];
export const LineColors=[color("#ac1830"), color("#37941f"), color("#204bd1"), color("#ca5c20"), color("#7c15ce")];
export const wxRankDBName:string="gameRank";
export const wxCityDBName:string="cityRank";
export const locationAPIKey:string="781515967e04e4cc5d7be506751dbe6d";

export const ColorTable={
    CanvasBgDefaultColor:color(255,255,255,255),
    CanvasBgLineGameColor:color("#A6D1FB"),    //color("#5aa0f1")
    ChallengeColor:color("#fff857"),
    HardColor:color("#f857ff")
};
















